# about.py
import frappe

def get_context(context):
    context.name = frappe.form_dict.name
    context.id=frappe.form_dict.id
    # context.about_us_settings = frappe.get_doc('About Us Settings')
    dnote=frappe.get_all('Delivery Note',filters={'name':frappe.form_dict.name},fields=['name'])
    # dnote=zy_base.utils.encrypt(dnote)
    if dnote:
        is_true='正品'
    else:
        is_true='盗版'
    context.dnote=dnote
    context.info=is_true
    return context
